<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>登录</title>
  <style>
    *{
      padding: 0;
      margin: 0;
      text-decoration: none;
    }
  </style>
  <script type="text/javascript">
    window.onload = function() {
      if("${error}" !== "") {
        alert("${error}");
      }
    };
  </script>
</head>
<body>
<div class="Login">
  <div class="box">
    <p class="table">Login</p>
    <br>
    <form action="${pageContext.request.contextPath}/loginIn" method="post">
      <input type="text" name="username" placeholder="账号">
      <input type="password" name="password" placeholder="密码">
      <br>
      <button class="go" type="submit">登录</button>
    </form>
    <br>
    <div class="tips">
    <span>还没有一个账户?</span><span>
      <a href="${pageContext.request.contextPath}/signPages">注册.</a></span>
  </div>
  </div>

</div>
</body>
</html>